<?php include view_path().'header_total.php'; ?>
<link rel='stylesheet' href='<?php echo css_url() . '960grid/960.css' ?>' />
<link rel='stylesheet' href='<?php echo css_url() . '960grid/960_extra.css' ?>' />
<link rel="stylesheet" type="text/css" href="<?php echo css_url() . 'display_style.css' ?>">
<section id="body">
    <h1>
        The post you try to connect to was deleted.
    </h1>
</section>

<script src="<?php echo asset_url() . "js/string_helper.js" ?>"></script>
<?php include js_url(true) . '/validate_things.php' ?>
<script>
        var firstClick = true;
    
        $('#apply').on('click',function(){
            if(firstClick){
                firstClick = false;
                $('#IntroductionContent').show();

            }
        
        else{
            Introduction = $('#IntroductionContent').val();
            $.ajax({
                url : '<?php echo site_url();?>/user_group3/jobs/apply/' + '<?php echo $Post["PostID"]?>',
                type: 'post',
                async: false,
                data: { IntroductionContent: Introduction },
                success: function(data){
                    if(data == 1)
                    {
                        alert("Successfully Apply!");
                        $('#apply').attr('class','button-disabled');
                        $('#apply').attr('id', '');
                    }
                    else{
                        alert("Failed to apply. Please try again");
                    }
                } 
            });
        }
    });
    
    // Google map Buttons
    var button_show_map = function(){$('button.show-map').on('click',function(){
        $(this).siblings('.map-container').css('left','0px');
        $(this).siblings('.map-container').css('position','');
        
        $(this).attr('class','hide-map');
        $(this).text("Hide Map");
        button_hide_map();
    });}

    var button_hide_map = function(){$('button.hide-map').on('click',function(){
        $(this).siblings('.map-container').css('left','-10000px');
        $(this).siblings('.map-container').css('position','absolute');
        
        $(this).attr('class','show-map');
        $(this).text("Show Map");
        button_show_map();
    });}
    
    button_show_map();
    // End of google map buttons
    
</script>

<?php include '/../../footer.php'; ?>